PATH 
Mac OS 8 and 9 Developer Documentation > Text and Other International Services > Apple Type Services for Unicode Imaging (ATSUI) > Apple Type Services for Unicode Imaging Reference

     

ATSUCompareStyles

Compares the contents of two style objects.

OSStatus ATSUCompareStyles (
                     ATSUStyle iFirstStyle,
                     ATSUStyle iSecondStyle,
                     ATSUStyleComparison *oComparison);
iFirstStyle
A reference of type ATSUStyle. Pass a reference to a valid style object whose contents you want to compare. You cannot pass NULL for this parameter.

iSecondStyle
A reference of type ATSUStyle. Pass a reference to a valid style object whose contents you want to compare. You cannot pass NULL for this parameter.

oComparison
A pointer to a value of type ATSUStyleComparison. On return, oComparison points to a comparison of the contents. See Style Comparison Constants for a description of possible values. You cannot pass NULL for this parameter.

function result
A result code. See Result Codes.
DISCUSSION
The ATSUCompareStyles function determines whether the style run attribute, font feature, and font variation values set in two style objects are the same, different, or a subset of one another. It does not consider reference constants or application-defined style run attributes in the comparison. You should call ATSUCompareStyles to implement style sheets and tables of style runs.

VERSION NOTES
Available beginning with ATSUI 1.0.


© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)